<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>合并模块批量导出</title>
  </head>
  <body>
    <script type="module">
      //多个模块合并导出，使用批量导出合成组，避免变量重量
      import * as hd from "./modules/hdIndex.js";
      console.log(hd);
      console.log(hd.hd1.site);
      console.log(hd.hd1.url);
      hd.hd1.default.show();

      console.log(hd.hd2.site);
      console.log(hd.hd2.url);
      hd.hd2.default.show();
    </script>
  </body>
</html>
